package net.huashitong.ssydt.provider.money.mapper;


import net.huashitong.ssydt.money.entity.SsMoneyGoldRecord;
import net.huashitong.ssydt.money.entity.vo.GoldsRecordsMyInVO;
import net.huashitong.ssydt.money.entity.vo.SsMoneyGoldRecordQueryInVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SsMoneyGoldRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SsMoneyGoldRecord record);

    int insertSelective(SsMoneyGoldRecord record);

    SsMoneyGoldRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SsMoneyGoldRecord record);

    int updateByPrimaryKey(SsMoneyGoldRecord record);

    /**
     * 获取列表（id倒序），根据userId筛选（id分页）
     * @param goldsRecordsMyInVO
     * @return
     */
    List<SsMoneyGoldRecord> queryIdDescByUserId(GoldsRecordsMyInVO goldsRecordsMyInVO);

	/**
	 * 列表查询
	 *
	 * @param ssMoneyGoldRecordQueryInVO 查询条件
	 * @return 对象列表
	 */
	List<SsMoneyGoldRecord> query(SsMoneyGoldRecordQueryInVO ssMoneyGoldRecordQueryInVO);

	/**
	 * 分页查询记录总数统计
	 *
	 * @param ssMoneyGoldRecordQueryInVO 查询条件
	 * @return 总记录数
	 */
	int queryCount(SsMoneyGoldRecordQueryInVO ssMoneyGoldRecordQueryInVO);
}